<template>
    <temp-info v-if="tempId"></temp-info>
    <temp-edit v-else-if="inited"></temp-edit>
    <div v-else></div>
</template>

<script>
import tempEdit from './tempEdit'
import tempInfo from './tempInfo'
export default {
  name: 'tempIndex',
  components: {
    tempEdit,
    tempInfo
  },
  data() {
    return {
      tempId: '',
      inited: false
    }
  },
  mounted() {
    this.tempId = this.$route.query.tempId
    this.inited = true
  },
}
</script>

<style scoped>

</style>